//
//  SunInsuranceTableViewCell.m
//  CPICApp
//
//  Created by sinosoft on 13-5-8.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import "SunInsuranceTableViewCell.h"

@implementation SunInsuranceTableViewCell
@synthesize lblInsuranceName,lblAmountTag,lblAmount,lblPremium,lblPremiumTag;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        lblInsuranceName=[[[UILabel alloc]initWithFrame:CGRectMake(12, 4, 250, 21)]autorelease];
        lblAmountTag=[[[UILabel alloc]initWithFrame:CGRectMake(12, 26, 34, 21)]autorelease];
        lblAmount=[[[UILabel alloc]initWithFrame:CGRectMake(54, 26, 98, 21)]autorelease];
        lblPremiumTag=[[[UILabel alloc]initWithFrame:CGRectMake(160, 26, 37, 21)]autorelease];
        lblPremium=[[[UILabel alloc]initWithFrame:CGRectMake(210, 26, 96, 21)]autorelease];
//        lblPremiumTag=[[[UILabel alloc]initWithFrame:CGRectMake(12, 26, 34, 21)]autorelease];
//        lblPremium=[[[UILabel alloc]initWithFrame:CGRectMake(54, 26, 98, 21)]autorelease];

        
        [lblInsuranceName setBackgroundColor:[UIColor clearColor]];
        [lblAmountTag setBackgroundColor:[UIColor clearColor]];
        [lblAmount setBackgroundColor:[UIColor clearColor]];
        [lblPremiumTag setBackgroundColor:[UIColor clearColor]];
        [lblPremium setBackgroundColor:[UIColor clearColor]];

        
        lblInsuranceName.font=[UIFont systemFontOfSize:16.0];
        lblAmountTag.font=[UIFont systemFontOfSize:14.0];
        lblAmount.font=[UIFont systemFontOfSize:14.0];
        lblPremiumTag.font=[UIFont systemFontOfSize:14.0];
        lblPremium.font=[UIFont systemFontOfSize:14.0];
        
        lblInsuranceName.textColor=[UIColor blackColor];
        lblAmountTag.textColor=[UIColor redColor];
        lblAmount.textColor=[UIColor redColor];
        lblPremiumTag.textColor=[UIColor redColor];
        lblPremium.textColor=[UIColor redColor];

        
        lblAmountTag.text=@"保额:";
        lblPremiumTag.text=@"保费:";

        
        [self.contentView addSubview:lblInsuranceName];
        [self.contentView addSubview:lblAmountTag];
        [self.contentView addSubview:lblAmount];
        [self.contentView addSubview:lblPremiumTag];
        [self.contentView addSubview:lblPremium];

    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
